home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Frameworks / Argus Starter 2.0 / Dialogs / SampleDialogBalloons.r < prev    next >
Encoding:
Text File  |  1995-06-23  |  3.2 KB  |  150 lines  |  [TEXT/KAHL]

  1. /**********************************************************************
  2.  
  3.     SampleDialogBalloons.r
  4.  
  5. ***********************************************************************/
  6.  
  7. /* THINK Rez resource format */
  8. #include <Types.r>
  9. #include <BalloonTypes.r>
  10.  
  11. resource 'hdlg' (500, "Sample Dialog Balloons", purgeable){
  12.   /* Header */
  13.   HelpMgrVersion,
  14.   0,                  /* start help with first item in DITL */
  15.   hmDefaultOptions,   /* hmDefaultOptions or hmSaveBitsNoWindow */
  16.   0,                  /* balloon definition */
  17.   5,                  /* variation code or position code, reference
  18.                          IM: More Macintosh Toolbox p3-10 */
  19.   
  20.   /* Missing Component */
  21.   HMSkipItem {
  22.   },
  23.   
  24.   /* Help */
  25.   {
  26.     /* [1] */
  27.     HMStringREsItem { /* store help messages in STR# 500 */
  28.     { 10, 10 },       /* default tip location is { 0, 0 } */
  29.     { 0, 0, 0, 0 },   /* default alternate rectangle */
  30.     500, 1,           /* OK button */
  31.     0, 0,             /* never dimmed */
  32.     0, 0,             /* never checked */
  33.     0, 0              /* never marked */
  34.     },
  35.     
  36.     /* [2] */
  37.     HMStringREsItem {
  38.     { 10, 10 },
  39.     { 0, 0, 0, 0 },
  40.     500, 2,           /* Cancel button */
  41.     0, 0,
  42.     0, 0,
  43.     0, 0
  44.     },
  45.     
  46.     /* [3] */
  47.     HMSkipItem {      /* Name text */
  48.     },
  49.  
  50.     /* [4] */
  51.     HMSkipItem {      /* Phone text */
  52.     },
  53.  
  54.     /* [5] */
  55.     HMStringREsItem {
  56.     { 10, 10 },
  57.     { 0, 0, 0, 0 },
  58.     500, 3,           /* Name field */
  59.     0, 0,
  60.     0, 0,
  61.     0, 0
  62.     },
  63.     
  64.     /* [6] */
  65.     HMStringREsItem {
  66.     { 10, 10 },
  67.     { 0, 0, 0, 0 },
  68.     500, 4,           /* Phone text */
  69.     0, 0,
  70.     0, 0,
  71.     0, 0
  72.     },
  73.  
  74.     /* [7] */
  75.     HMStringREsItem {
  76.     { 5, 5 },
  77.     { 0, 0, 0, 0 },
  78.     500, 5,           /* Male button */
  79.     0, 0,
  80.     500, 6,           /* checked */
  81.     0, 0
  82.     },
  83.  
  84.     /* [8] */
  85.     HMStringREsItem {
  86.     { 3, 3 },
  87.     { 0, 0, 0, 0 },
  88.     500, 7,           /* Female button */
  89.     0, 0,
  90.     500, 8,           /* checked */
  91.     0, 0
  92.     },
  93.  
  94.     /* [9] */
  95.     HMSkipItem {      /* Phone text */
  96.     },
  97.  
  98.     /* [10] */
  99.     HMStringREsItem {
  100.     { 10, 1 },
  101.     { 0, 0, 0, 0 },
  102.     500, 9,            /* Married box */
  103.     0, 0,
  104.     500, 10,           /* checked */
  105.     0, 0
  106.     },
  107.  
  108.     /* [11] */
  109.     HMStringREsItem {
  110.     { 10, 10 },
  111.     { 0, 0, 0, 0 },
  112.     0, 0,
  113.     0, 0,
  114.     500, 11,          /* Popup */
  115.     500, 12           /* Popup */
  116.     },
  117.   }
  118. };
  119.  
  120. resource 'STR#' (500, "Sample Dialog Help Strings") {
  121.   {
  122.   /* [1] */
  123.   "To dismiss dialog and save changes, click this button.";
  124.   /* [2] */
  125.   "To dismiss dialog without saving changes, click this button.";
  126.   /* [3] */
  127.   "Enter persons name you wish to add to database.";
  128.   /* [4] */
  129.   "Enter persons phone number you wish to add "
  130.   "to the database.";
  131.   /* [5] */
  132.   "Click this radio button to identify person as male.";
  133.   /* [6] */
  134.   "Identifies person as male.";
  135.   /* [7] */
  136.   "Click this radio button to identify person as female.";
  137.   /* [8] */
  138.   "Identifies person as female.";
  139.   /* [9] */
  140.   "Check this box if person is married.";
  141.   /* [10] */
  142.   "Identifies person as being married.";
  143.   /* [11] */
  144.   "Use pop-up menu to select a database to add person to."; 
  145.   /* [12] */
  146.   "Use pop-up menu to select a database to add person to."; 
  147.   }
  148. };
  149.  
  150. // End of File